package com.yeswater.multithread.chapter1.test1_10;

/**
 * author : yeswater
 * date : 2023/10/18
 */

/* 可以看出中间有九个隐藏线程
 * main 1
 * Thread-0 11
 * Thread-1 12
 * Thread-2 13
 * Thread-3 14
 * Thread-4 15
 */

public class Test {
    public static void main(String[] args) {
        Thread runThread = Thread.currentThread();
        System.out.println(runThread.getName() + " " + runThread.getId());
        Thread t1 = new Thread();
        System.out.println(t1.getName() + " " + t1.getId());
        Thread t2 = new Thread();
        System.out.println(t2.getName() + " " + t2.getId());
        Thread t3 = new Thread();
        System.out.println(t3.getName() + " " + t3.getId());
        Thread t4 = new Thread();
        System.out.println(t4.getName() + " " + t4.getId());
        Thread t5 = new Thread();
        System.out.println(t5.getName() + " " + t5.getId());
    }
}
